using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
      public class Cats
      {
         [Key]  
         [DisplayName(" ")] 
         public int ID { get; set; }
         [Required(ErrorMessage = "Link to Consumer table不能空")]  
         [DisplayName("Link to Consumer table")] 
         public int Cid { get; set; }
         [DisplayName("产品ID")] 
         public string Pid { get; set; }
         [DisplayName("选择的模板")] 
         public int Templete { get; set; }
         [Required(ErrorMessage = "购买数量不能空")]  
         [DisplayName("购买数量")] 
         public int Num { get; set; }
         [Required(ErrorMessage = "购买时间不能空")]  
         [DisplayName("购买时间")] 
         public DateTime BeginDate { get; set; }
         [Required(ErrorMessage = "产品价格不能空")]  
         [DisplayName("产品价格")] 
         public decimal Productprice { get; set; }
         } 
} 
